﻿@page "/"
@attribute [TabItemOption(Text = "Index", Closable = false)]

<PageTitle>Index</PageTitle>

<h1>Hello, world!</h1>

Welcome to your new app.

<Select Items="List1" @bind-Value="SelectedItems1" />
<MultiSelect Items="List1" @bind-Value="SelectedItems2" />

<Button Text="Test" OnClick="ABC"></Button>

@code {
    private IEnumerable<SelectedItem> List1 = new List<SelectedItem>
    {
        new SelectedItem{ Text = "A", Value="A", IsDisabled=true },
        new SelectedItem{ Text = "B", Value="B", IsDisabled=true },
        new SelectedItem{ Text = "C", Value="C"},
        new SelectedItem{ Text = "D", Value="D"},
        new SelectedItem{ Text = "E", Value="E"}
    };
    private string SelectedItems1 = "";
    private IEnumerable<string> SelectedItems2 = Enumerable.Empty<string>();

    private Task ABC()
    {
        return Task.CompletedTask;
    }
}
